class Solution(object):
    def targetIndices(self, nums, target):
        nums.sort()
        st = []
        for index, num in enumerate(nums):
            if num == target:
                st.append(index)
        return st
